package com.msb.mall.order.feign;


import com.msb.common.dto.SkuHasStockDto;
import com.msb.common.utils.R;
import com.msb.mall.order.entity.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@FeignClient(name="mall-ware")
public interface WareFeignService {
    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockDto> getSkuHasStock(@RequestBody List<Long> skuIds);
    @PostMapping("/ware/waresku/lock/order")
    R orderLockStock(@RequestBody WareSkuLockVo vo);

}
